package org.easybuy.text;

import java.util.ArrayList;
import java.util.List;

import org.easybuy.dao.NewsDao;
import org.easybuy.daoimpol.NewsDaoImopl;
import org.easybuy.entity.News;

public class News123 {
	public static void main(String[] args) {
		NewsDao newsDao = new NewsDaoImopl();
		List<News> list = new ArrayList<News>();
		list = newsDao.getIndexNews();
		for (News news : list) {
			String title = news.getContent();
			System.out.println(title);
		}
	}

}
